package com.aya.decorate.decorateimpl;

import com.aya.decorate.Beverage;

import java.math.BigDecimal;

public class Sugar extends ComboBeverage {

    Beverage beverage;

    public Sugar(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public BigDecimal cost() {
        return BigDecimal.valueOf(0.5).add(beverage.cost());
    }

    @Override
    public String description() {
        return "糖";
    }
}
